var foo = {
  getBaz: function(proxy, baz){
    return proxy.askBaz(baz)
  }
}

var proxy = {
  askBaz: function(baz){
    return baz.getBaz()
  }
}

var baz = {
  getBaz: function(){
    return 123
  }
}

console.log(foo.getBaz(proxy, baz))
